
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import  piniaPluginPersistedState from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'

// 引入重置的css
import '@/styles/common.scss'

// 引入懒加载指令
import {lazyPlugin} from '@/directives'

import { componentPlugin } from './components'

import { useIntersectionObserver } from '@vueuse/core'

const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPluginPersistedState)

app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)
app.mount('#app')

